package com.shop.cereshop.commons.domain.im.tx.resp.follow;

import com.google.gson.annotations.SerializedName;
import com.shop.cereshop.commons.domain.im.tx.resp.ImBaseResp;
import lombok.Data;

import java.util.List;

/**
 * 获取用户的关注、粉丝与互关数
 */
@Data
public class FollowGetInfoResp extends ImBaseResp {

    @SerializedName("FollowInfo")
    List<FollowGetInfoItem> FollowInfo;


    @Data
    public static class FollowGetInfoItem {
        /**
         * {
         * "To_Account": "UserID_001",
         * "ResultCode": 0,
         * "ResultInfo": "",
         * "FollowerCount": 0,
         * "FollowingCount": 2,
         * "MutualFollowingCount": 0
         * }
         */
        @SerializedName("To_Account")
        private String To_Account;
        @SerializedName("ResultCode")
        private Integer ResultCode;
        @SerializedName("ResultInfo")
        private String ResultInfo;
        /**
         * To_Account 的粉丝数。
         */
        @SerializedName("FollowerCount")
        private Integer FollowerCount;
        /**
         * To_Account 的关注数。
         */
        @SerializedName("FollowingCount")
        private Integer FollowingCount;
        /**
         * To_Account 的互关数。
         */
        @SerializedName("MutualFollowingCount")
        private Integer MutualFollowingCount;
    }

    //重写tostring 父类属性也要实现
    @Override
    public String toString() {
        return "FollowGetInfoResp{" +
                "ActionStatus='" + getActionStatus() + '\'' +
                ", ErrorCode=" + getErrorCode() +
                ", ErrorInfo='" + getErrorInfo() + '\'' +
                ", FollowInfo=" + FollowInfo +
                '}';
    }

}
